<?php
require("inc/conn637.php");
$title=$_POST['title'];
$author=$_POST['author'];
$content=$_POST['content'];
$sex=$_POST['sex'];
$ip=$_SERVER['REMOTE_ADDR'];
$addtime=date('Y-m-d H:i:s');
$sql="insert into lyb(title,author,content,sex,IP,addtime) values('$title','$author','$content','$sex','$ip','$addtime')";
$in=mysql_query($sql) or die("执行失败");
header("location：lyb_admin637.php");
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
</head>

<body>
</body>
</html>